<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        form{
            position: relative
        }
        a{
            width: 100px;
            line-height: 100px;
            position: absolute;
            display: inline-block;
            text-align: center;
            background-color: #eee
        }
        input[name=image] {
            width: 100px;
            height: 100px;
            opacity: 0;
            cursor: pointer;
            outline: 0;
            border: 1px;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0
        }
    </style>
</head>

<body>
    <form action="">
        <a>
            选择图片
            <input type="file" name="image" accept="image/*" onchange="handleInputChange(this)" class="file">
        </a>
    </form>
</body>

</html>
<!-- <script src="node_modules/vconsole/dist/vconsole.min.js"></script>
<script>
  // 初始化
  var vConsole = new VConsole();
  console.log('Hello world');
</script> -->
<script src="./js/yz.js"></script>